#ifndef PIECE_H
#define PIECE_H

#include <QtGui>
#include <QtSql/QtSql>

#include "equipement.h"
#include "chauffage.h"

namespace Ui {
class Piece;
}

class Piece : public QWidget
{
    Q_OBJECT
    
public:
    explicit Piece(QWidget *parent, QString m_nomPiece, int m_IDPiece, QSqlDatabase instBDD);
    ~Piece();

    QString getNom() const;

    void MAJEquipement();
    
private:
    Ui::Piece *ui;

    QVector<Equipement*> listeEquipement;

    QString nomPiece;
    int IDPiece;
    QSqlDatabase bdd;
};

#endif // PIECE_H
